package com.syqc.comlib.utils

object FilterHelper {
    private var lastClickTime = 0L

    @Synchronized
    fun clickThrottle(): Boolean {
        return if (System.currentTimeMillis() - lastClickTime > 500) {
            lastClickTime = System.currentTimeMillis()
            true
        } else {
            false
        }
    }
}